<template>
  <div>
    <div>使用vue异步组件为弹窗组件,设置弹窗宽高,标题</div>
    <div>
      <button @click="handleClick">点击</button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleClick() {
      const component = ()=>import('@/pages/home.vue')
      const dialog =  this.$dialog(component,{},{
        props:{
          width: 700,
          height: 500,
          title: '单据详情',
        }
      })
    }
  }
}
</script>

<style>

</style>